package com.xinqi.modules.exam.paper.dto.req;

import com.xinqi.common.base.dto.CommonFileDTO;
import com.xinqi.common.base.dto.QuestionBaseDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 课程测评-请求对象-新增
 *
 * @author: linkai
 * @date: 2023/07/02
 */
@Data
@Schema(description = "课程测评-请求对象-新增")
public class CourseExamPaperCreateDTO implements Serializable {

    /**
     * 班级ID
     */
    @Schema(description = "班级ID", example = "")
    @NotNull(message = "班级ID不能为空")
    private Long classId;
    /**
     * 所属章节ID
     */
    @Schema(description = "所属章节ID", example = "")
    private Long chapterId;
    /**
     * 名称
     */
    @Schema(description = "名称", example = "")
    @NotEmpty(message = "题目内容不能为空")
    private String name;
    /**
     * 详情
     */
    @Schema(description = "详情", example = "")
    private String content;
    /**
     * 题目内容
     */
    @Schema(description = "题目内容", example = "")
    private List<QuestionBaseDTO> questionContent;
    /**
     * 附件列表
     */
    @Schema(description = "附件列表", example = "{}")
    private List<CommonFileDTO> files;
    /**
     * 扩展字段
     */
    @Schema(description = "扩展字段", example = "")
    private String extend;
}
